The corresponding literals are more concise and cleaner.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
_init(windows) {
super._init(false);
- this._labels = new Array();
- this._thumbnailBins = new Array();
- this._clones = new Array();
+ this._labels = [];
+ this._thumbnailBins = [];
+ this._clones = [];
this._windows = windows;
for (let i = 0; i < windows.length; i++) {
}
// Make sure we only do this once
- this._thumbnailBins = new Array();
+ this._thumbnailBins = [];
}
_removeThumbnail(source, clone) {
this._currentRow++;
this._currentCol = 0;
- let row = new Object();
- row.keys = [];
- row.width = 0;
+ let row = {
+ keys: [],
+ width: 0,
+ };
this._rows.push(row);
}